<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/animate.css">
    <title>Document</title>
    <style>
    p{
        width: 200px;
        height: 200px;
        background:yellowgreen;
    }
    </style>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">  
        <div>
            <button @click="bool=!bool">按钮</button>
            <transition enter-active-class="bounceInLeft" leave-active-class="bounceOutRight">
                    <p v-show="bool" class="animated"></p> 
                    <!-- 一个操作元素时 -->
            </transition>
            
        </div>
    </div>
    <script>
    new Vue({
        el:"#app",
        data:{
           bool:true
        }
    })
    
    </script>
    
</body>
</html>